
import { setter } from './packages/config';
import * as store from './packages/storage';
export * from './packages/storage';
export default {
  install: (App, option) => {
    setter(option);
    let obj = { ...store };
    Object.keys(obj).forEach(e => {
      if (/^3/.test(App.version)) App.config.globalProperties['$' + e] = obj[e];
      if (/^2/.test(App.version)) App.prototype['$' + e] = obj[e]
    })
  }
}